//
//  ViewController.swift
//  CNMToast
//
//  Created by StephentTom on 03/30/2022.
//  Copyright (c) 2022 StephentTom. All rights reserved.
//

import UIKit
import CNMToast

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        self.view.backgroundColor = .white

        CNMToast.set(defaultMaskType: CNMToastMaskType.black)
//        CNMToast.set(defaultStyle: CNMToastStyle.dark)
//        CNMToast.setHUD(backgroundColor: .black)
//        CNMToast.set(foregroundColor: .white)
//        CNMToast.set(cornerRadius: 8)
//        CNMToast.set(minimumSize: CGSize(width: 90, height: 90))
//        CNMToast.set(imageViewSize: CGSize(width: 5, height: 56))
        
//        CNMToast.showInfowithStatus("警告。。。")
//        CNMToast.showTextWithStatus("卡啦啦啦卡啦啦啦卡啦啦啦卡啦啦啦卡啦啦啦卡啦啦啦卡啦啦啦")
        CNMToast.showSuccesswithStatus("加载完成～")
//        CNMToast.show()
//        CNMToast.showInfowithStatus("警告看到我你看")
//        CNMToast.showError(withStatus: "失败的加载～")
//        CNMToast.show(withStatus: "加载中")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

